﻿using System;
using System.Windows.Controls;
using System.Windows.Media.Animation;
namespace TweetStream.Extensions.Contracts
{
    public interface IThirdPartyContent
    {
        //delegate void ShowImageUriHandler(object sender, IHLArgs args);
        //delegate void ShowHtmlUriHandler(object sender, IHTMLArgs args);

        //event ShowImageUriHandler ShowImageUri;
        //event ShowHtmlUriHandler ShowHtmlUri;

        void InitControl(InitMessage msg);
        UserControl DoCheck(string key, string contentToParse);
        string RetrieveKey(string url);
        bool CheckIfAutoLoad(string key);

    }


    // custom attributes 
    public class IHLArgs : System.EventArgs
    {

        private Grid dynamicControlsContainer;

        public IHLArgs(Grid grd)
        {
            this.dynamicControlsContainer = grd;
        }

        public Grid DynamicControlsContainer()
        {
            return dynamicControlsContainer;
        }
    }



    // custom attributes 
    public class IHTMLArgs : System.EventArgs
    {

        private Grid dynamicControlsContainer;

        public IHTMLArgs(Grid grd)
        {
            this.dynamicControlsContainer = grd;
        }

        public Grid DynamicControlsContainer()
        {
            return dynamicControlsContainer;
        }
    }


    public class InitMessage
    {
        public string Key { get; set; }
        public Grid DynamicControlsContainer { get; set; }
        public string Url { get; set; }
        public Grid LoadingAnimationContainer { get; set; }
        public Storyboard LoadingAnimation { get; set; }
    }
}
